﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Web;
using System.Web.Mvc;
using r4u.business.logic.layer.REGISTER;

namespace r4u.Controllers
{
    public class RegisterController : Controller
    {
        //
        // GET: /Register/

        public ActionResult Index()
        {
            return View();
        }


        // POST: /Register/AddUser
        [HttpPost]
        public ActionResult AddUser(User user)
        {
            User temp = new User();
            if (temp.InsertUser(user))
            {
                return new HttpStatusCodeResult(HttpStatusCode.OK);
            }
            else
            {
                return new HttpStatusCodeResult(HttpStatusCode.InternalServerError);
            }
        }

    }
}
